package com.budwk.app.util;

import cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage;
import cn.dev33.satoken.context.model.SaRequest;
import cn.dev33.satoken.context.model.SaResponse;
import cn.dev33.satoken.context.model.SaStorage;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadLocalUtil {
    public static ThreadLocal<String> userIdThreadLocal = new InheritableThreadLocal();



    public static void setUserId(String str) {
        userIdThreadLocal.set(str);
    }

    public static void clearUserId() {
        userIdThreadLocal.remove();
    }

    public static String getUserId() {
       String userId = userIdThreadLocal.get();
       return userId;

    }


}
